Welcome, Manwhosldthewld! You'll find a lot of people here are either doing the same thing as you are (detox/recovering) or have already succeeded with the rough patches and are staying sober. A lot of good advice is here...
Right now, you need to work on you. The other stuff, making amends and such, you can do later (and much better when you have a clear head).