Renamed scheduler file to scheduler

* No need to mentioning the version name in scheduler. We have git
for it.
* Renamed scheduler() to schedule()
* Minor code Refactor

Signed-off-by: Shashank Sahni <shredder12@gmail.com>