changed max_commits() and get_calendar() to fix issue #17