removes testfiles, restructures compiler functions