fixed syntx errors, scheduler
finished findFreeTimes in scheduler.php and tested