Added slightly better looping features

Still need to think a lot more about looping
Once done, will need to dramatically rewrite parser to save commands,
calculate dates, and store to the calendar in separate functions