added package.json
fixed a bug in default case
0.0.1