doc update
use none_of where possible
code style fix
use emplace_back instead of push_back
add PruneInput function
get key status for the update moment