Reorganize code
Added travis-ci configuration file