Add analysis script
Improve build history script