minor additions

added error handling
added install checking