Format code and remove some warning

Now that code format is configured and should be trigger at each compile phase, no more excuse to format the existing code base =)
Also, here are some (easy) fix for checkstyle warnings.