Add ParseEnv

Supports graceful handling of errors during parsing.

Fixes #5.