modified the insert event api. It no longer transfers events to the event scheduler. re-structured the  startScheduling() because it was missing the unprocessed queue unlock in case the unprocessed queue was empty.