updated statistics calculation to rounding instead of truncation. Updated formatting
updated comments