Fix the name of the script in the banner.
Add pdf output.
Read the title from the legend file.