added command line option to write diagnostics
removed obsolete cruft
added test for --diagnostics (easyeye-extract)