MIL-488 query function added with fixes