added support for hours per work week settings, fixed some errors in stats endpoints, fixed issue of repeated colors in charts