Finished documenting heap functions