changed dofiles to .lua file extensions
added coroutine startup event handling