fix samples, fix lib
Merge remote-tracking branch 'origin/master'