update document generator
update logging functions