[Dynamic] Cleanup.

Made events smaller (aka, more functions in a seperate file) to make the
system easier to read