Added simple sample codes.
version OSX blocks main thread…? Why…?