Moved cleaning activities from main script to clean.py