Summaries and comments add to all methods

Summaries and comments add to all methods. A few changes in the naming
of some variables.