added queue'ing functions. Tested adding and flushing out the queue. Returns a list of everything that was in the queue