Add environment validation.
Merge pull request #3 from gguerini/add-environment-validation

Add environment validation.