added @class annotations to defineClass calls
added annotations to defineInterface