Fix PriorityQueue declaration
Add comments, remove some fluff