Added checks to handle an invalid filepath; updated README