Hi Pierre,
Upgrading from 16.1 to 21.1 is supported. Just take some time to read over the release notes to see about known issues and such.
Regarding .xos and .xmod files, the .xos file is the actual EXOS image. XMODs are used to install additional features, such as openflow, ESVT, and SSH in some versions.