First Edit of Bob's Code

In this version I have eliminated a lot of the pophtml statements by making a generic one. Still more work to be done in this area. Also, that section must be changed alongside configfileio to work properly.