Added working models.py file. Some functionality is missing, but not much, and what is missing has been documented.