Add code quality plugins
Fix some findbugs violations