added Checkstyle, fixed a few warnings