Queue Updates

Added commentation to queue and fixed errors with implementation.