remove .gitignore
include doc metadata in json message
minor refactor