document stuff
refactor tests
more docs
Merge branch 'master' into unstable
fix code sample in docs
document some stuff
document the sql.compound_inverse_query method
properly close cursors
more refactoring
Merge branch 'refactor' into unstable
Merge branch 'unstable'