Added some basic checks, still need to make sure that rows and columns are valid
Fixed the coefficients!!!! A minus was missing.