Courses maintain lectures

Added functionality for course object to maintain the list of
associated lectures
Also contains minor code cleanup