add docstrings to schedule.js