Fixed #114: checks for existence of input files.