In addition to what Servy mentions in his answerServy mentions in his answer, it often helps to provide links to the other reference answer. You can do this by collecting the link from the "share" option at the bottom of the post (for more information on sharing answers see Bill's answer hereBill's answer here).
Adding an extension to another user's answer is a good way of adding addenda or fixing potential hangups in the primary solution.
As always, consider upvoting the other helpful answer (I have likewise upvoted Servy's answerServy's answer). I don't see any problem with accepting your own answer since it's the actual solution to the problem, but you can accept the other answer that was the most helpful in finding your solution. Either way is fine.