Added comments for folder exclusion and logging