reduced duplicated md5 call
simplified SYNOPSIS
fixed an example
added a test for error event
fixed terminology