added queries and updated docs