Add a wait() method on socket that wait on a signal (and discard everything else) and returns that signal. change signals names
change signal name p2; handle success/failure when asked to stop
update doc
documentation fixes