Update docs
Detect file format