Enabled Checkstyle and fixed some warnings