adding travis config, formatting java code