Optimized importing by immediately exiting upon error. Changed temp directory name from hard-coded to a system-provided one. Added a specific error message showed when php.ini is misconfigured.