Added exclude method. Fixed bug in randomInstanceOf() method.