writing analyses docs