Added checkstyle configuration from Alex/BTC. Fixed a few warnings.