Add the Q library
Move test code out
Clean up example and move SQL
Clean up libraries