Added revealing module pattern

fixed other patterns as well