added expression pruning
Merge pull request #7 from jtmoulia/prune-expressions

Added expression pruning