Added function to make the parsed ast a simple hashmap.
Added simplification.