You two stand a good chance of making this worse for both of you the way you're going about things. Criminal charges are not a do-it-yourself project. I'd strongly suggest that you speak face to face with a criminal defense attorney about your liability. Your friend also needs counsel - but independent from yours, as it would be a conflict of interest for one attorney to represent both of you in this situation.
Despite the name of the website, answers given are for information only and do NOT constitute legal advice. Every situation is unique and the complete case (all the facts and information) must be discussed in detail before an opinion can be given. Do not rely on any answers given on this site without consulting face to face with an attorney licensed to practice in the jurisdiction where your case is. Any answer given does NOT form an attorney-client relationship.