enable passing function parameters for standalone version
fixed pmod loss function documentation