Implement word pruning.
Removed display arguments for pruning debugging, fixed prune bug
Merge branch 'issue31' into rec_text