Licenses shall be granted only for units complying with the requirements of applicable federal, state, county and local building, health, fire, electrical and plumbing codes. Any proposed alterations to reexisting units shall, in addition, be subject to the requirements of this section.