Further cleanup of .module file and added check for existence of input file.