add documentation for flat command