added comments to TicketMachine.java