Writes computed md5 to a .json file. Fixed out of index error if user input request with only 1 or 2 inputs.