Updated Transaction model, encoding, tests, readme