Add TravisCI config and fixes