Added PrintFile class to abstract printing statistics to different
files