Validate day of the week before week of the year
Reimplemented user specified epoch
Minor refactoring