refactor: Added setter and getter for directories and captions.