renamed yieldVal to retVal to indicate that it should only be used when returning from a function call,
updated the debug code wrapper to have an explicit "context" parameter