He wants to turn his addiction struggles into a memoir to help others.