Implement adding files to the index, but modifying and removing files has not yet been implemented.
Add tree adding functionality.