Added better documentation, updated changelog, added TLS option in demo.js