lots of changes for network statistics. still need to figure out units but mostly okay. also added error checking!