Changes -Amrita

Changes to popQuery, interface and version additions