added some comments, made fix to past scheduling