Changed the format to createModule(), fixed some minor issues and applied the standards rules