Bug fix of printschedule and schedulecost.
Merge pull request #2 from clasnake/master

Bug fix of printschedule and schedulecost.