Added and configured codenarc plugin and applied fixes