added comments to preprocess.R