Update log.h file. Progress bar output to stderr
Fix closing files
OpenCL device type from command line, OpenCL kernel source form command
line