code to read files and take mean

in progress