fixed some of the getPeriodAssignments, added comments about ToDo