Finished making avgmeth subroutine and chrfilelist subroutine, have not tested