different improvements

added mapfile support
reading mapfile and storing values in internal datastructs