Merge pull request #1 from mdakin/master

Add latency distribution and minor formatting changes.
Renamings and fixes to avoid garbage.
Adding latency distribution output.