non-working commit. changes include adding beginnings of event handling
and Doxygen documentation