Added logging, fixed some bugs

logging
different lists are cleaned different ways
fixed bug with Match class