changed code for problem g, still some issue with weighted jacobi.  Otherwise working ok