Add print() method (from jack2, by Karl Linden)