Update doc and remove unused var