fixed saveschedule.js script not terminating after saving documents and added some model files