add esd detection
Merge pull request #2 from mdoege/master

ESD support