Started integrating notes in the timedata argument
added the afterHours function