added option for checking existence of files

fixes #35