updated final.pl rewrote some of the test files