Re-coded to generate headers in the subroutineList generator.