Documentation improved
queryScalar method improved