Add travis-ci configuration.
Fix line length.
Fix indentation.
Add basic regression test.