add maven checkstyle plugin, cleanup some issues