corrected the history log
added analysis.py