support xsd that has multiple complex types

Modified models.py and models.html to support schemas with multiple layers.