Fixed error in sigmoid function. Fixed error in parallel costFunction: forgot to add bias nodes to layer 0.