Update to access user via the envelope property.
Update documentation.
Safely handle parsing of environment variable.
Update test case.