added Nex core code. Beginning of Query lib