For Trustee Sales

if property sells for more than the debt, does Benneficiary keep excess funds or remit to prior owner?

Excess funds go first to junior lien holders in priority order and then to the owner. If they go unclaimed they go to the state.