version update
colSums replaced by rowSums for nonparameteric estimation.