added function to read and write info about frames