fix segfault in get_active_document, die when config cant be found, cleanup in on_modified_buffer and README fixes