Reviewd and fixed examples

Hey.

As requested by @nkallen in issue #98, I fixed the reference example in `example/general.js`. I also reviewed all other examples in the example directory and readme file and fixed them, too.