added print data dump and menu function