added comments and cleaned up code
added comments and cleaned up code

Milstein/photosharing-nodejs,anthonydresser/photosharing-nodejs,vfrancis/photosharing-nodejs,walidkur/photosharing-nodejs,dlipeles/photosharing-nodejs