initial coding of continuous map. intermediate checkin, map not nearly complete and will probably be refactored.  also, a bunch of code cleanup.