Code format and fix for lookup uri.

@JakeWharton @copolii

This fixes the sample app again.