added input checks and command line args use for calender