Added MapFormat system

Have to fix writing files.