Move `num()` to `helpers`-module and add docstrings to some helper-functions.