Renamed $Object->class to $Object->classname

Under PHP 5.2 you may get problems and class is a reserved keyword.