Prune "dead" objects

Closes #4
Merge branch 'pruning'