Renamed mainQueue to mainQueueID

Expanded notes section and fixed some comments.
Renamed mainQueue var to mainQueueID to keep consistent with intention and comment convention.