included day_of_week for simulation based on input year
corrected errors based on unittests