log exception when item part fails
allow overriding of assert function
Merge pull request #24 from fieg/minor-improvements

Minor improvements