Add checkstyle to the netbeans plugin.

Fix some issues identified by checkstyle...
Fix license headers in NetBeans plugin.