Fixed some style and coding errors in models.py