add statistics mngt
fix update command and add test for this
register all stats
add global stat that increments other ones
minor fix
Merge branch 'feature_add_statistics' into develop