Rename nsamples->nepochs, add comments on methods