Added LaTeX output
Moved the +/- indicators
Improved output for constants
Improved handling of negative values, implemented escaping
Simplified logic for linear solutions