C# updates

added a couple of parameters and added the wait function