Added file format verification

MODIO_VERSION is now a function that returns the version of the file
format.