add description and frequency to flatten.py