Added utility classes of three.js (and minor modifications).