Updated documentation wrt stats output files
Factored out file opening pattern in command parser