log: improced log message, added WARN log level
log: print help message with -h --help switch
log: convert fprintf to log_fatal calls