Fixed Errors

Fixed Chunk generating errors and went another step near to transfer
chunks. (Not working yet)