Updates to ingest function

Fixed JSON encoding in Document model + groundwork for blank array
element removal/documentation