Fixes to readme code, test to demonstrate using WaitFor