Moved event scheduler into its own files.
Updated scheduler with overlap table.