added validation class that now checks the data before anything is run

the validation checks to make sure the data is in hash form and that all values of the hash are Fixnums.