Some general purpose commits fixing bugs. Still issue concerning date difference from moment
Previous and next day work