Restructured to include a test directory and added .travis.yml for Travis CI