Reworked class structure. Parameter setting for modules now works.

Updated indent config to add newline at EOF.