Topology separation

- Deleted address field for master (use definition instead)
- Topology functions moved to topology.c