added documentation for the loss classes