Heat map functions created. Marker bugs fixed. Code cleaned up.