Corrected a type specification in event/3 because of dyalizer. Removed some whitespace.