Further improvements to the program to text conversion (including the
addition of method (Function) and SubProgram functionality)