Some null annotations and javadoc fix

While searching how to work with queues...
BTW for the future please avoid gratuitous whitespace changes.