Added event initial code.
Fixed header.