added notes for preprocessing function