updated code, writeup, and clean up of file directory