Fix a few issues and introduce travis