Rewrite of analysis script.
Merge pull request #4 from paulErdos/master

Rewrite of analysis script.