add validate() method to be used on file contents

checks whether or not the file contains valid hexadecimal digits