Get the program title by function rather than global variable
Formatting improvements and minor bug fixes