doc: Improve documentation to describe the usage of the functions.

In addition remove wrong return types marked by the analyzer
refactor: Make wtfEnabled only a getter.

Previously it was possible to set wtfEnabled to true without calling enableWtf.
This would set the package into a undefined state.