Enhancement/assert exceptions

fixes #11