added some logic to item, fixed some errors

changed where getItemtype was taking in an id instead of an item.  fixed
some methods in itemMethods