Added some new tests, added the raw_transaction library, and some changes elsewhere