add core/class.js, update some files