improved controller change algorithm and structure of calls
finished master-controller change, added mapping between addresses and id's