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