changed file structure

Changed the file structure for making dependencies manageable
changing to write commits

Changing code to write commits to a file and add new files to repo