Move exports to top
Fix readme example
Add Travis CI