Applied new style and documentation requirements to map library; also some minor code fixes.