Some cleanup: arguments lists, syntax consistency, default arguments.
Note: there is a misspelling on "treshold" (sic). Sadly it also is the case in the corresponding Python functions, as well as some of the C++ code... :-/ So for now that's not something to be fixed in the doc...