Learn Code/Make it Auto-detect Directory

Draft code for Auto-making the Directory. Will purge remaining bugs as
I go through the task list.