Solved important bugs with the data file.