added printHistory
updated printerHistory
added retry mechanism for receipt printing