Fix message encoding and added basic piece downloading code