Implemented the reveal module pattern

Script modules now use the reveal module pattern