now using String.format in the correct manner
removed unnecessary semicolon
added clear cache command as a result of the requestclearcache command
added tests for clearcache command and cachecleared event
added javadoc