added ssl setting
test documents
tests
dirty tracking and tests