added y.hat vector to keep track of outputs
added source reference to LogLoss
changed random number range to {-1, 1} from {0, 1}. fixed flat error rates.