Added significant debug, error and info logging.
Found improper return that was killing the script early.  Fixed