switch index.js to a working example, add example to readme, switch off debug mode