Update wait.h

implements wait header