add check for correct number of parameters in input file
changed things to work for DES data