Finished separating cost and jac functions in preparation for advanced optimization using Scipy.  Added cost calculation to each iteration for optional ploting.  Added text to simple plot output.