Add doc blocks to helper functions