formatted and removed comments
formatting
changed all use of the term view to Result - more representative of what it does