Improved some error messages.
Updated the change log.
Fixed some tests.