added query string support, added halt flag, added api-doc generator