agent now understands some basic command-line options  ; C code cleanup