Fixed issue #6. Handle File Not Exists Exception
Fixed Issue #7. sorted out the indexing problem