Added reading from file in main.