Declare some helper functions
Change to use .string instead of .text
Add selection logic for maintainer and contact information
Corrected selection of several fields