Add initial code and tests for .readPatchFiles()