Added some comments and removed the endheap() function as it was not used => less to explain in the report