The landlord must comply with all applicable building, housing and health codes. I would demand that the landlord install both a smoke detection device and a fire extinguisher in your apartment immediately. It may be in your best interest to seek an attorney who practices Landlord/Tenant Law in your geographical location to advise you of your rights.
You cannot break your lease agreement and expect to be let off the hook just because the Landlord had one or two code violations.
Yes, you will be held accountable for breaking the lease.
If you want to report a problem to the landlord, follow their notification requirements.
If they fail to fix it, then you send a seven day notice to cure the problem and give the LL seven days after they receive the notice to fix it. You must send the notice certified mail. State in the notice that you will consider the lease terminated if they don't fix the problem.