Add more support for pruning.
Add main file for testing.
Import the old crappy pruner.