Removed dead code in scheduler.
Added a bit of documenttaion for the front end.