Reading and indexing of mgf files.