Add full doc blocks for legacy functions