removed obsolete commands; changed pointers to vktSmartPointer