Added createFileMap
TODO: finish replicateFile method