Added code to parse and store data from file