updated hash generation

Signed-off-by: Kai Hermann <kai.uwe.hermann@gmail.com>
migrated communicator to the communication class

Signed-off-by: Kai Hermann <kai.uwe.hermann@gmail.com>