fixed major bug introduced in commit b7c689da76ede8be310a8a9d94be568889389fae; other general cleanups in command line options, const-casting hack for Eigen output parameters