updated the directory class to make it use generate instead of setup
updated the readme