added ability to specify logfile in bsh script
removed magic strings. made parameters changeable from bash script