starting work on the event processor and system monitor

A lot of work is needed, and this is a learning project so I'm sure the
code is excessive and can probably be done a better way