Modify the parameter reading to use a namelist. This avoid the issues we had with some compilers ignoring whitespace readlines and some not.
- Minor clean-up of code.
- Modified headers.