Wrote some documentation for function to generate schedules