Functions for reading check-ins from directories and files + unit tests