Added R file for processing of raw data