fix removing unused directory.
fix error handling.
add Makefile to use Travis CI.
add .travis.yml.
Merge branch 'feature-test'