Updated README.md
Refactored code and added support for checking whether the file is less than the minimum length
Added catch for all exceptions to ensure clean output