Split environment handling out into a separate file and new header
Merge pull request #30 from smspillaz/yiqi.item_26

Split environment handling out into a separate file and new header