Move code from read_directory.py to recipe.py

Move code from read_directory.py to recipe.py