standardize kernels using training data only

Standardization is now performed using only training data. Added the
possibility of returning all components (not just the last).