added show strucutre function and updated some other stuff