add example program to read namelist groups

Add a simple program to read a namelist group. Read input namelist
files with either a standard multi-line input or as single line input.