fix for int division
Add sigmoid loss