started the sample comparison; added file reading