Updated some comments
Added regressorLevel and trainingIndex parameters to the 'H' function