fixed error and added method for retrieving modules
Merge pull request #4 from cleandart/fixAndGetModules

fixed error and added method for retrieving modules