Log errors to screen and logfile
fixed SQL problem, Questions to Job problem, single input file problen and added more error messages