How to use "explaining" in a sentence

Sentences

He introduced me to her, explaining that she was his niece

'I was explaining that these are valuable.'

On my last day at Limmeridge House, I talked to Miss Fairlie, explaining the details of her father's will