fixed file output and adding an on death reset, also almost done with test level