Add comments, refactor code for more readability
Add comments, refactor code for more readability

thollingsheadesri/arcgis-server-store,thollingsheadesri/dojo-esri-arcgis-server-store,thollingshead/arcgis-server-store,thollingsheadesri/arcgis-server-store,thollingsheadesri/dojo-esri-arcgis-server-store,thollingshead/arcgis-server-store