updated environment settings
Merge pull request #6 from MartinOlsansky/master

Improved environment settings in API.