Merge pull request #6 from pminervini/master

update on loss functions
Rename derivs in losses.jl to avoid conflict