Added checkstyle plugin.
Made sure checkstyle rules are complied.