Some comments are slightly updated.
The constructor and destructor of GravifonClient are made thread-safe.