Added basic docstrings to the core primitives.