expanded map and added comments to code