fixed several issues in transaction construction. added testnet