docu updates. restructured ecc.js.