Cleanup

Changing method docs into JsDoc, and renaming mapCreate to createMap.