Deleted function checkFileName and it's using in the body of main program (it's not needed, system checks nate itself)
Rewritten type definition for tMatr
Corrected using IOResult if procedure fillFile
Corrected using compilation directive {I-} (added switching it off and on where it's needed)
Checked indentation
Final version