added queues with low and high priority
formatting
fixed broken initialization