restructured a bit, added dynamic folder path reading, refactored random selection functions