adding docs for core functions of heap