Corrected leak on file loading and added file structure info