added file data methods and updated constructor