Travis CI added

Travis CI has been done to run the automatic build and check. Several minor issues have been fixed.