Edited prims to work with queue.c
even more edits