Introduce the checkstyle plugin and fix the code accordingly (issue #150).