Under state law, under those conditions, you legally weren't required to pay a dime and the landlord couldn't evict you until all of those issues were fixed and the rental was brought up to code. I hope you were aware of this and didn't give them a dime.