Added encoding + tests
Added tests
Added travis tests declaration