improved some functions

findItem and findGround and findObject can take either type or id as the
searchterm