add --stdin
reimplement -X better
document user-visible variables
completely overhaul the tutorial