Added digest file, hex, and binary options.

Added option to calculate message digest for a file.
Added options to set output format to bin or hex.