Refactored writeToRepo method to take less parameters. Got rid of name, type and timestamp.