Fixed a problem with .dat file recognition and fixed some comments