implement gcfg

This ended up being a lot simpler than I was expecting. Now we read from a config file into a struct and use those values.
I think these can be combined into a single line. Not a big deal though