Refactored MathSymbol. works a lot simpler now

Supports variables now as well.
Fixed comparison