Add code comments to View Class

I marked up the lib/view.js file with some helpful examples about all the different functionality this class provides.