Add documentation for core functions