* moved the print logic for file and folder out the print dirlisting
* moved the init into its own func
* moved the pathname logic to the newfile func