A basement apartment should come with a walkout door for convenience. The space can be divided into one or more bedrooms, and each one needs to have egress windows that meet the building code criteria. If you want the basement apartment to be an independent unit, you need to add a bathroom and a kitchen.