added comments and reorganized
resized the map-canvas