Fixed rlp encoding
(un)marshal blocks and transactions
Test code updated