Cleaning up code

Made Generator, Modulator, and Module separate files; wrote functions
to remove duplicate MW/LW code; renamed MW to "Front", LW to "Rear"