removed superfluous output, added file headers