fixed bugs left from previous iteration. renamed linked list functions to be ready-queue specific. slight logic cleanup