Update and cleanup: Added file extension check. Cleaned up names and error messages. Updated README.md