Improve parsers

Builds off of #43. Various improvements to the AST classes and parsers.