Added some error checking and commented Gauss-Seidel.