Red Mars (Which is followed by Green Mars and Blue Mars) is an excellent exploration of how life on Mars would go, including the terraformation of the planet. It doesn't really go too much into the technical details of early habitats though, the book begins with the first large scale (100 people) immigration that is designed to be a permanent colony. It focusses more on the sociological aspects of colonising a new planet, and the vie for independence from Earth than would probably follow.