Sirs changes to remove compilation warnings
Correctly output tank stats
Sirs revised code