Add comments and formatting edits
User of MBeanScanner can specify file to write to

The default is still System.out, and if there are errors
opening the File, MBeanScanner will default to System.out.