added file reading logic
added data file field processing
adding data validity checking