updated demo version of charlie.js
Added some basic documentation.
updated demo so that it works with new charlie.js code.