added log auditing, as well as tweaks and small fixes