Added expired function and itemdetail

Itemdetail now passes a variable (is_seller) which indicates if the seller of the current good is the user itself.