Introduced handling for empty queries and empty results. Also fixed the usage documentstion