Cleaned up duplicate_cards
Added docstrings to some files