- Using stod instead of atof
- Integrated validation methods in the *MatFactory class(es)