Fixed file contents and actual adding of the data to the array