Added metadata option to the Event

The construct function changed, so there will be a break in compatibility.