README: demo.js link fix (closes #23)

Signed-off-by: Adrian-Tudor Panescu <adrian@panescu.com>
silog: constructor refactoring (closes #21)

* Adds checks for constructor parameters;
* Adds regression tests.

Signed-off-by: Adrian-Tudor Panescu <adrian@panescu.com>