also added some comments. And change some printf to lprintf - added soffset(source offset) and doffset(destination) parameters to write_fru_area