Maybe fixed inventory render issue, added comments