A few bug fixes. Some checking about existence of input files.