Added the __str__ method to priority queue. Bug fixes.