Fixed bug in environment variable name.
Fixed and improved documentation.