Added category freq csv generation