Implementint softmax classification and bias unit added.
Bug fixed, bias term corrected.