made getFileForURI() null pointer proof
extended documentation