Some null annotations and javadoc fix

While searching how to work with queues...