Sorted build on Travis.

Closes #13, closes #9 and closes #2. I'm on a roll!