added map code, still untested

if it looks like I modified somebody else's code section, all I did
outside of the gridcell and logicalmap areas was apply an automated
reformat