Add checkstyle plugin and and fix style issues.