Added documentation
code cleanup.
Changed log messages during a debug session.