some cleanup, but for some reason the prints in graphfile2.m stopped working