Fixed bug with buffer size;Tested small file transfer