Take care of various defects.
Improve events and graphs, add a command-line option for attaching detector scripts.