add comments/documentation and refine debug
Merge pull request #1998 from MauriceManning/script3_rebase

CIDEVSTC-183 Integrate and Validate with Production System