udpate tests in demo.html, update documentation