added sigmoid and forwardProp functions