pyranha: more work on the documentation, including docs for the settings class.

Also expose the reset_n_threads() method for the settings class.