Refactoring and bug-fixing of the code responsible for
publishing/receiving knowledge on/from the network

some demo refactoring