Added support for syslog and fixed several bugs.