added save_frame method, allows saving joint data in a specified format