Fix init.sh and modified SphinxApiDemo