Code and doc fixes, new report class

Added new report class. Made some code and documentation fixes.