enable passing function parameters for standalone version

Hi Twan,

Here is a small update that allows parameters to loss functions to be passed via the command line. Also fixed the documentation for the pmod function that seemed to be different from the loss_functions.hpp code.

Looking forward to your feedback.

Regards,
Charl