update documentation and add enum FormatType