fix model prediction -> reintroduce predictedVariable, add some debug output
resolved merge conflicts