fixed some of the fileIO, made it a little easier to read. saving the global results in the topish folder.