allowing agent generation to continue with warning even
when jars used cannot be deleted
Adding some javadoc
Added a null check
formatting