Improvements to scheduler, added live code reloading