Changed preprocess to return whitener. Changed sample script.