Added a few constants for maintainability.

Gave names to a few magic numbers and the common date format.