Huge warnings cleanup

I went through all our java files and resolved warnings. Mostly unused
variables/methods.