added clearEnvironment function, added environment support to SH shell, updated documentation