One other issue is the guarantees and warranties associated with renting a property. In the rental contract there is probably language to the effect that there are no guarantees or warranties made by the landlord. Such language is mostly true, there are some warranties which can be properly disclaimed. However, the implied warranty of habitability cannot be disclaimed.
The implied warranty of habitability states that the rental unit is habitable, in other words, the rental unit is safe to live in. This includes repairs which are necessary, but also removal of mold, funguses, flooding hazards, and the like. It also requires a base standard of living, including freedom from roaches and rats, working toilets and smoke detectors, and lockable doors and windows.
All told, the warranty of habitability means that when a tenant enters the apartment, it is safe for them to live there. It is a basic requirement for human dignity. In some states the warranty extends to houses or condominiums, check with a local attorney to find out more. Some states go so for as to prohibit the warranty of habitability from being waived, one such state is Colorado. Again check with a local rental attorney in your state for more information.
If the space is not habitable, there are several rights the renter has, including withholding rent, moving and claiming constructive discharge, and an injunction to have the space improved to meet the standards. It would be wiser to speak to experts, such as a relator or construction expert, to determine if the place is actually uninhabitable. For example, there is case law that implies that a lack of electricity could make the apartment uninhabitable, but if there is a short in the system which can be fairly easily fixed then the situation may be different. Know your rights and defend them, but ensure steps are taken to establish a violation of the warranty before acting.