Removed dead code and simplified matrix solvers. No Wn