Added doc of loss functions