work in progess, added context manager for Server Class, need continue working at test_check_fail
restructured advanced example
added read_old_state feature and test