Removed console logs and added documentation to AlgebraError.toSttring