Integrated filesystem.c into the gui and cleaned up mem.c