Include a prompt for files.
Ignore .idea
Include minor clean up.
Fix error in directing setting.
Change directory handeling
Remove superfluous call to main function.