Work on statistics generator

Fixed bug of keys in output records. 
Added 2 new filters.