refactors weekday gen
Merge branch 'master' into gh-pages