gencfg.js: fix a sameeps bug
translate a few routines
small fixes

improve initwk
add rism_model.js