My question involves an eviction in the state of: Michigan

My landlord never gave me a lease like he was supposed to. We had a on-going problem that cost me a lot of extra expenses for 4 months. There are still many repairs that he said he would have done within 2 weeks of moving in and didn't. We found another problem with the house that makes the kids rooms unsafe for anyone to sleep in. He refused to fix that problem. So I stopped paying my rent and started looking for a new place. Now he is trying to take me to court and make me pay rent I don't think I should have to pay. Can he do this?