improved readability

Removed extra commented out "old work" from initial development.  Added more useful comments explaining the averaging method