Make CSV importing more robust by adding error checks and displaying a success or failure message (fixes #23)