Fixed exports in index.js + updated examples.