updated parsestats.py to reorder things, put in lots of comments, found and noted a bug