update host.js
add repo object documentation
added documentation about update object.