Fix issue #1187
Update the signature of "schedule" methods
Fix issue #1196 and some docs issues
Merge pull request #1188 from zsxwing/issue1187

Fix issue #1187 and #1196