Added further debugging output for rtf creation