writer::p can now take a scalar or code reference.
Added list printing.