added implicitWait protocol command and improved waitFor command