Add missing dict for nsf grants.
Fix assignment of doc_id and of type
move to new schema.
Fix return
Fix import, use fileinput.iput as context, and fix its argument
Allow output in json, useful for debugging
Fix calls to add_feature