Adding codenarc plugin and fixes