Add simple logging to scheduler

Also, config has been refactored.