Changed spacing, fixed errors, merge McAwesomesauce's pull req

Fixed some spacing
Fixed semicolon errors
Removed totalItems, used inventory.size()