Fix for heap pop function, updated docs.