Add block parsing method

Can someone else double-check this method with some raw block data of their own? I want to make certain the block parsing is really correct before merging this crucial method in.