travis init

#61 with some refactorings