If you use Environment Modules (from Sourceforge, SGI, Cray, etc) to setup and control your shell environment variables, we've created a new article on how to quickly and correctly create a modulefile. The technique is fast and produces a correct modulefile for any Intel Developer Products tool.
The article is here: https://software.intel.com/en-us/articles/using-environment-modules-with-the-intel-compiler