Changed label processing , fixed sigmoid
merge fixes
Merge pull request #1 from axydes/sgd_fixes

Sgd fixes