added comments to code
added input and output mode (hex or bin)
fixed readme