Changed the format to createModule(), fixed some minor issues and app…

...d the standards rules