fixed some comments and opened the logfiles in ascii rather than binary mode