updated the readme to include pruning
rewrote master_clean.py and added a test file for code continuity