simplified code
only search for nested plug-ins in the root directory of the target
platform because searching everywhere for nested plug-ins caused trouble
when plug-ins contains library JARs which are plug-ins. The latter may
contain unresolved dependencies and may cause builds to fail.
refactored anonymous inner classes to inner types
added documentation