edited addQueue and added error-handling to delQueue