remove demo & update package & complete test

1. remove demo
2. update package.json
3. complete test case
4. delete the useless code