minor changes to class.js, added Transport classes