split of Scheduler to scheduler and event module, eventmemory variable now volatile
cleanup of code, button module simplified