Hi,
Can I say,(a) Peter was happy to thank Peter for his help.
Yes. I assume there are two guys called Peter here?(b) Peter was glad to the kind man.
No. You can't 'be glad to ' someone'. Say it some other way.
Clive