Initial code cleanup

Added documentation to models.py and views.py