Add attributes & oldClass functions to internal library, clean up class function, fix bug in how mapply uses eval