Table row addition

Added functionality to add a row before and after the initial start of the calendar.  Also cleaned up some of the loops and functions.