Finished the output function section. The CG and Gradient methods still haven't been completed.