added update_balance, modified send_payment