renamed some functions, stub for unit tests for files.c