added comments among other things.