Refactored code to improve testability. Added some basic tests and Travis build file
Merge pull request #60 from TomSeldonBoxUK/code-refactor-testable

Refactored code to improve testability