fixed bug in cognostics with only one variable, added check for whether output data exists on HDFS