added comments indicating use of module pattern