Refactors and testing!
Adding travis config