Added check to ensure input data is good

The main function for computing probabilities now first calls the
function "inputIsOk", which prints an error and returns false if the
number of violations for any item doesn't match the number of
constraints, or if there are no counts listed for an item.