Add Travis CI, write on struct, add test