update on loss functions
that autodiff doesn't make sense in this context
some fixes
Merge pull request #6 from pminervini/master

update on loss functions