Created by: KUNAL1612
Patch Description Added code to check for validity of json in jsonl files in the index building function. Also added two new tests to make sure that empty jsonl files as well as corrupt jsonl files throw up the right errors.
Testing steps ran the new tests to ensure that it works as expected