Took FILENAMES out of the namespace, and added a fopen_exclusive function to open with file with locks