Automatic coding of phases and milestones

Automatic coding of phases and milestones