Some comments.  Refs #7789.
Checkpointing the work.  Refs #7789.
Added some more debug output.  Refs #7789.
Completed most of the refactoring work.  Refs #7789.
Added 1 more unit test.  Refs #7789.
Fixed some bugs in cpp and unit test.  Refs #7789.
Improved error output message.  Refs #7789.
Fixed bugs in code and unit test. Refs #7789.
Added one more column in output to indicate fit quality. Refs #7789.
Corrected some error during unit test. Refs #7789.
Corrected some errors. Refs #7789.
Cleaned code. Refs #7789.