made answers reusable, restructured mathbox output so it updates live with animation, fixed -x^2 parsing