Fix issues with day number. Add tests for days.
Added docs for day.