protect watches with a semaphore

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
added REAME.md with some examples

Signed-off-by: Jan Dvořák <mordae@anilinux.org>