Neaten documentation.

- Display docs for static functions.
- Hide tests from docs.