fixed the query structure in API header; correct signedness for the res_count in Python module
added missing source files to Examples compilation scripts
include code examples in the distribution