change samples
integrate sophokles73 fix
manage observe
fix close function. (segfault)