Updated communication path documentation. Small refactoring and comments
added throughout the code.