handling case where _source files might have trailing newlines and fixing readme docs for _.getQuery