Added Entity interface
Implemented messaging functions