Very glad to hear you are open to getting help. Is your friend open to doing the same?
As with any abuse, recognizing it is a problem is the first step to any treatment, and you've done it! I just urge you all to seek professional help before you do anymore damage to your body or a more fatal consequence.