Added InitializeSwitchletEvent and some minor bug fixes associated with the new event.