Added NMI handling code to startup
Merge pull request #7 from majenkotech/master

Added NMI handling code to startup