added comments to document important changes to parent.frame calls.