* renamed a struct variable to make more sense
and minor unimportant typo

Signed-off-by: Venom <https://github.com/VenomX>
* added average calculatation and print placement

Signed-off-by: Venom <https://github.com/VenomX>