converts a binary file to a text file and vice versa. prints some statistics