changed default layer graph to networkx directed graph
code cleanup in model.network.get('layers')
unified behavior of model.network.get('layers') and model.system.get('layers')