Added comments. Removed heapToDot.