Add missing comments, add logging of a successful connection.