Remove old code/function that aren't used anymore but show in the auto doc.
Add docstring.