Bug fix---a few variables weren't marked as static.
Document functions in syslog.