checks for spelling mistakes, makes changes suggested by Peter