Added SHA1 verification on inccomming data + Added datacontract for pieces.