Added code segments to report.
Fixed the help message when not providing correct input to the RMs or Middleware.