Basic implementation of core event system

General documentation improvements