Improved code
Added lots of tests to process files
Added travis.yml