Horseshoe - everyone gets unpleasant thoughts of some description from time to time - just with an anxiety disorder like OCD it is almost like you are "allergic" to the thoughts - that instead of just briefly passing through your mind, they lodge in your mind, and you can't get them out of your mind/feel bad about them, and some people, as in your case, have a particular "ritual"/"compulsion" for dealing with them - like the way you have to apologise to God for them. Obviously only a qualified professional can definitely 100% diagnose that your thoughts are due to OCD, rather than being, say part of depression, or caused by anything else, but what you have described does sound consistent with OCD symptoms.
Having intrusive unpleasant thoughts doesn't mean you are a bad person - it's like the disease deliberately challenges you by throwing into your mind things that you would find abhorrent. Look at all these successful horror writers, like Steven King, and James Herbert - they have obviously had some very unpleasant violent thoughts in their mind whilst creating their fiction; and that doesn't mean that they are bad, dangerous people!
I think it is very helpful if you are suffering from intrusive thoughts to read more about this on the internet and self-help books - IME one stage in coming to terms with it and getting better is reading enough to understand that you aren't thinking these thoughts because you are a bad person. Good OCD self-help books will provide ideas as to useful CBT techniques that you can use by yourself at home to try and help get rid of the thoughts.
In general, has anything stressful happened lately, as it sounds like you have been feeling worse of late. Anxiety disorders really do feed off high stress levels, so if you can generally get your stress levels down, do relaxation/breathing that should help with distressing thoughts.