Updated with new functions

new methods getError/getErrorStr/getSummary
change STDERR pipe to be read by script for the new methods above instead of going to log file
allow non-blocking fgets mode