fixbug, master thread unexpected shutdown
improve composer support
more friendly sample
Merge pull request #170 from hitsmaxft/develop

minor bugfix and improve