updating analysis functions
writing analyses docs