added --instances-of to o-of-p.sh to list instances of a given type