Reorganized and formatted files

Moved helper files to the main class into a module directory for
organizational purposes.