Add function prototypes
Fix test
Cleanup debug stuff
Add travis testing