Fixes #1 and Fixes #2

    make settings more flexible
    add q for examples
    ditching oop in favor of closures
    add new api function: `write` - override to avoid writing to stdout