tested / cleaned up functions

EMPS, ACUT, DCEX, HEST, PREG, SHEL tested and working
Merge pull request #154 from courtrightd/patch-6

tested / cleaned up functions