doctests for element.py, missing documentation in functors.py