added option for a whole number format output, use %i
Adjusted data percentage to 2 decimals with %.2f and ofcourse converting to float