Fixed the methods for finding all classes in an environment.
Marked some things as @API
Added an empty name constant, and check.