fixed map contents display issue; moved parser functions into one file where global map stuff was defined