completed refactoring Transactions
for save
Remove a lot of return-function style, simplify the structure.