Additional documentation and cleaned up imports in views.py