added java doc to writeHistory