Added some documentation in pre-processing file