Major changes to error handling. Changes for the better. Script now writes errors for hosts it can't connect to.
Updated ToDo to reflect changes.