Fix lint problems and add travis-ci settings