added code for batch conversion of raw files