updated views to match pep 8
refactored code to be PEP8 compliant
made code easier to follow
added new function
reformatted comments
switched to tuples