Added sphinx style documentation.
Added more stats results to the output file.