Added PHPUnit testing to project and simplified normalizeFile.