fixed GQL query parsing, revised package.json for npm publishing