added network size

fixed networks and tests

finished rebasing

again finished rebasing

rebased and simplified diff

Change-Id: I73800777fa3d7702f4d12fb6f3201d2d5b64835c
Merge "added network size"