better documentation and performance

slight performance increase and backward compatibility with the print
function/method.