Correction of a spinup problem in gauss_jordan_method: initialization of variables and error handling (#153)