add stats logging with max 600 values backlog - fixes #2