Add scheduling README and clean up main function.