reorganized library and fixed testcases
Travis CI integration