Attempts to change module from double to integer
Major code cleanup and fixes to get module data to load correctly.