Added test file.
Refactoring: main procedure, wich calls parseFile and writeResult.