Update analysis script

Update after lots of part 1 of analysis is there