Bug fixes.

Program running now works somewhat.
Cleanup
New script to facilitate the loading of config files.

Usage found in comments in the code.