Make start and end time functions public. Fix start of week bug.