Changed location of log message that displayed before help information
Simple syntax adjustment
Modified logging syntax
Enabled loop to provide arguments to gradient
Forgot to check the contracted parameters