Loads map file. Misc minor changes.