added payments model, changed script_payment to transaction