Fixed build and added travis and gitignore.