updated documentation
fixed null pointer errors when connection didn't exist