Added namespace handling to Query object
Updated attr example