Made the threaded option configurable.

I've also added an example configuration file to provide some nice information.