refactored module array holding and added shutdown module hook
Merge pull request #11 from zelgerj/master

refactored module array holding and added shutdown module hook