Added cli.js & Modified lib/index.js