added main method to generate data to file