Pulled the send and recieve file operations into a new class FileOperations.