Added code to make sure that the arguments.txt was in the specific format:
window=
threshold=
before accepting input.