Implement flow stats. Added --no-flow-stats and --flow-expiry options. This closes #23