outputting object data to screen, needs improvement for output to file