Finished program

The program is finished, tested, and working. I have tested this for
several hours with no problems and returned all configuration parameters
to defaults. This code is ready for review and merge into master.