Get rid of the main/Main confusion
Added syslog support