add wrapper script
trim trailing newlines from namelist output