Add gitignore.
Set up example, and clean up index.js.