added some more documentation to analyze_pi.rb