add travis-ci config
fix deprecation warnings.