get edit config working, may need more testing, add comments to a couple files.