You've gotten it exactly right. Their are only 3 elements to an apology:

1. I know that I've hurt you

2. I am deeply sorry

3. I will do my best never to hurt you again.

That's it. Pretty simple stuff.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store