added main script for data processing