Adding travis config
Various fixes