Added command line option to pass the number of transfer bytes.
Support for non multiple of packet size data transfers.