COMP: tried to tune the inter-thread communication.
DOC: Added Coding notes.