Add configuration options documentation

I only took a quick look at the code, hopefully I got everything right. Furthermore, `stdout` doesn't seem to be used anywhere so I've removed it from the example.