Fix init, init-functions.sh
Add new functions to elog-functions.sh