new features; ability to define a custom error handler; updated demo