code cleanup, new Document constructor
Merge branch 'master' of https://github.com/qcri-social/AIDR