Removed async and wait calls to make .NET 4.0 compatible and synchronous...

I have made the project .NET 4.0 compatible by removing the asynchronous methods within the code. This means that I have replaced the async waits with sleeps. This allows the code to be called in a synchronous manner, without having to make callback functions.