added more documentation
added keyboard shortcut to query
stop querying if no callback defined