Code refactoring (QRinput_Struct_count has been added).
More code cleanups.
Added new option, "verbose".
A new test has been added.
New debug function has been added.