Debugged transaction and script serialization/deserialization, and replaced many instances of changebase with encode/decode('hex')