Refactored, defined list as an array of lists, added some header
comments from the sweng templates