updated gradle setup
added all document fields to document cursor
checking if field exists