deaths & dynamic networks implemented; starting point of refactoring to the generated code
refactored the network change code
refactored death