made the start and end time accessed from the settings
fixes #21