Rewrite inventory class to fit the inheritance pattern, small comment and code fixes to actor directory