listClassess() is now perm code
misc cleanup
misc cleanup v2
misc cleanup v3, added constness to listClasses()