Testing

Inclusive of all the Travis CI setup.

Added few examples and setup ready to run mvn test. Made some classes testable