separated functionality into finding file, running file, and editing file

cd'd to dir