Updating travis configuration.
Increasing test coverage to almost 100%. Fixed tests, added tests, removed vestigial code.