added transactions and close_old_transactions methods to group; create_transaction method to squaring event