fixed NPE, added ability to read multiple query files.