Renamed P to better findable and recognisable `prototype`.
Renamed e->event and event->eventName
Minor style/naming fixes