Rebuild QApi; allow null arguments; lots more commandline and driver code; tests now pass.