Started adding documentation. started reorganizing map.js  I removed some unecesarry stuff and changed the way items_count was initialized.