added optional callback parameters to Printer#connect, Printer#disconnect, and Printer#print