Fixed logging, works both for syslog and regular log
Some minor changes
Merge branch 'master' of github.com:Meraz/unix_programming