added --log parameter to output log to a log-like format. included a bash script that can be called from a cron job