adds module pattern function
updates closures, modifies module pattern
adds module pattern to readme