Fix the error in payment factory. + some minor impr.

yah, transactiontype 0 is the most common operation. is a payment. but i admit doc confuses