Functions to etract info from files
Functions for extracting info