Home port refactored

Improvements to interface and addition of events and possible to communicate between modules.