Rewrote compound parser

Added support for coefficients, subscripts, and grouped compounds. I.e:
2(NaCl2)2