fix month function, add some daycounters, fix formatting