base structure for adding new file or directory

tiny tweak to main again, and adding structure code for file creating