Clean global variable
Widened legen window.
Removed faulty align.
Merge pull request #30 from 2m/fixes

Multiple bug fixes in the stats script.