You need to lawyer up and make sure you repeat everything you said to the cops to the lawyer. If you have no previous record, things can usually be worked out. Then again, I don't know how stuff or leniant Michigan is with drugs.