simplify constructor
simplify addTxin and addTxout interface