Improved documentation and query function implementation.
Now code compiles and make-connection function works properly.