Added exception handling to GRADS and a new InvalidDataException class