new items are queued behind all others with the same xtime
refactoring: renamed parameter
revised assertions
refactoring: renamed lock variable
fixed locking issue after timing out
added documentation
formatting
refactored dequeuing of items
refactoring: renamed variable