add an environment method to app.
update readme.