As someone that answers a lot of questions, yes, an accept is great. Not all askers take the trouble to do that.
A comment from the OP on an answer can be interesting if they say something like "this is great, it runs 5 times faster than my first attempt".
Or "that extra section about topic xyz was really useful, I hadn't even thought of that". (I tend to write long answers that do more than just answer the OP's direct / specific question, and it's nice to hear when the extra time I spent rambling about interesting related stuff was actually appreciated.) Or even a more generic "wow, this is more detail than I was expecting" comment will make me feel good about the time I put into writing that answer. It's rewarding to know that people actually read those long answers I write. This obviously only applies to long answers where that's the case.
I sometimes get comments like "this was the best answer in the history of the known universe" (maybe a small exaggeration here :), and I'm sometimes tempted to upvote them myself. :P Especially if the comment comes from another active SO user that I know (from other comments/answers) knows what they're talking about. This goes double if the comment points out something specific that my answer explains well, rather than just generic praise.
But generic "thank you, that solved my problem" comments from the OP, especially on a question that wasn't very interesting (e.g. a simple newbie error, or especially a debugging-help question which probably has very low future value), then my reaction can be as negative as "why did they waste my time with a notification to come and read this comment after I already spent more time than they deserve answering their lame question". This is multiplied by 1000% if they didn't accept my answer. The level of annoyance for a useless comment also depends on my perception of the OP's competence (including spellcheck / style as well as what they misunderstood or were unable to debug or search).
Of course, I welcome a comment that helps me clarify my answer for the OP and future readers. Maybe there was one part of the explanation that I didn't go into enough detail about, or an editing error left something unclear.
If you don't have anything interesting to say along with the "thank you", just don't. I already assume that my answers solve the OP's problem or confusion and that they're happy I answered (unless I know my answer was only a partial solution). Getting a check-mark confirms that.
That sounds really egotistical when I put it that way (some of which was for comedic effect), but I hang out in tags where I know enough to post solid answers. It's not surprising that an expert can be confident they've given a good answer to most questions (if they take the time to write one). I don't think it's that egotistical to be confident in my answers, especially after hanging around on SO for a while and getting lots of helpful and positive feedback on previous answers.
Another thing an OP can do that I really appreciate is to edit their question to improve it and make it more useful to future readers after seeing what the right answer is. It makes me happy that I helped out someone who cares enough about SO to put in some extra effort and make it a better place.
If there was some long rambling section that turned out to be irrelevant, it's great when they tidy that up. (Although it's not good when they edit a summary of the answer into the question. Don't do that.) It's also not good to remove too much of the original wording they used to describe the problem, because future searchers might guess the same thing if they don't know the correct terminology.
I do clean up questions fairly often, but I really appreciate it when the OP manages to do something useful in that direction.