Addding back txout index
More changes to using txout and minimize decoding, encoding time