fixed issue with TXT folder with only one condition; some more convenience functions + doc