fixed bad handling of empty/nonexistent queues; attempted to fix peek/pop using 'count' argument but this is untested
fixed bad handling of empty/nonexistent queues; attempted to fix peek/pop using 'count' argument but this is untested