Updates for stat.py

uses the first argument as the file to inspect, and adds more printouts