Implemented schedule generator
Added funtion to write the schedule into a .csv file