Added a home page & some bug fixes for domain handling