changed txt to dat, added proper message numbering