added initial Query stuff. added @DocumentListener annotation and handling