Finished map.js, mapcell.js documentation and general cleanup. Started entity cleanup.