Completed readHandler to properly transfer file.
Added Ack check