Removed debuggin printfs. Improved query UI for the client and the server