implement wait command.
Merge pull request #38 from mwhooker/master

implement WAIT command.