Created method to add handlers for e.g. logging
added null check to handler iteration
Merge pull request #5 from mjuecker/master

Created method to add handlers for e.g. logging