add some comments
realised state change date filter
fix create new counter