added readonly to variables
added readonly to directory variables
added functions is_dir and is_file
Added function create_files
added function setup_reference
using the new functions create_files and setup_reference