Make configuration a little more Go-like

This is an attempt to simplify configuration code and improve documentation. Feedback is welcome.