Made app save to and load from matp files