check function

Perform checks of potential errors in variable/dataset